package com.punai.customer.domain;

import com.punai.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 材料单位换算对象 cus_material_link_unit
 *
 * @author zxw
 * @date 2022-12-04
 */
public class CusMaterialLinkUnit{
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private String id;

    /**
     * 公司id
     */
    private Long companyId;

    /**
     * 材料id
     */
    @Excel(name = "材料id")
    private String materialId;

    /**
     * 换算单位
     */
    @Excel(name = "换算单位")
    private String unit;

    /**
     * 换算系数
     */
    @Excel(name = "换算系数")
    private BigDecimal coefficient;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit() {
        return unit;
    }

    public void setCoefficient(BigDecimal coefficient) {
        this.coefficient = coefficient;
    }

    public BigDecimal getCoefficient() {
        return coefficient;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("companyId", getCompanyId())
                .append("materialId", getMaterialId())
                .append("unit", getUnit())
                .append("coefficient", getCoefficient())
                .toString();
    }
}
